
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>在js中使用length报错Error in renderTypeErrorcannot read property bgImg of null · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="语法getBoundingClientRect.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../cmd命令.html">
            
                <a href="../cmd命令.html">
            
                    
                    cmd命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="Array.prototype.slice.call.html">
            
                <a href="Array.prototype.slice.call.html">
            
                    
                    Array.prototype.slice.call解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="async 函数.html">
            
                <a href="async 函数.html">
            
                    
                    async 函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="callback&&callback如果存在回调函数就执行.html">
            
                <a href="callback&&callback如果存在回调函数就执行.html">
            
                    
                    callback&&callback() 如果存在回调函数就执行！
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="CSS3 nth-child使用注意.html">
            
                <a href="CSS3 nth-child使用注意.html">
            
                    
                    CSS3 nth-child(n)使用注意
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="css3的 -webkit-min-device-pixel-ratio属性 解决高清的适配.html">
            
                <a href="css3的 -webkit-min-device-pixel-ratio属性 解决高清的适配.html">
            
                    
                    css3的 -webkit-min-device-pixel-ratio属性 解决高清的适配
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="CSS文本超出自动缩小字体.html">
            
                <a href="CSS文本超出自动缩小字体.html">
            
                    
                    CSS文本超出自动缩小字体
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="element-ui默认样式修改.html">
            
                <a href="element-ui默认样式修改.html">
            
                    
                    element-ui默认样式修改
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="JavaScript setInterval函数详解.html">
            
                <a href="JavaScript setInterval函数详解.html">
            
                    
                    JavaScript setInterval() 函数详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="JavaScript概念之screenclientoffsetscrollinneravail的widthleft.html">
            
                <a href="JavaScript概念之screenclientoffsetscrollinneravail的widthleft.html">
            
                    
                    JavaScript概念之screenclientoffsetscrollinneravail的widthleft
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="js获取星期几.html">
            
                <a href="js获取星期几.html">
            
                    
                    js获取星期几
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="js监听滚动条事件和获取浏览器及屏幕高度和宽度等信息的方法.html">
            
                <a href="js监听滚动条事件和获取浏览器及屏幕高度和宽度等信息的方法.html">
            
                    
                    js监听滚动条事件和获取浏览器及屏幕高度和宽度等信息的方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="js时间戳与日期格式之间相互转换.html">
            
                <a href="js时间戳与日期格式之间相互转换.html">
            
                    
                    js时间戳与日期格式之间相互转换
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="JS数组reduce方法详解及高级技巧.html">
            
                <a href="JS数组reduce方法详解及高级技巧.html">
            
                    
                    JS数组reduce()方法详解及高级技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="js中获取时间new Date详细介绍.html">
            
                <a href="js中获取时间new Date详细介绍.html">
            
                    
                    js中获取时间new Date()详细介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="less传参问题：在url中插入变量今天在需要用less给url传递参数时遇到了小问题，一番搜索后有了下述解决方法.html">
            
                <a href="less传参问题：在url中插入变量今天在需要用less给url传递参数时遇到了小问题，一番搜索后有了下述解决方法.html">
            
                    
                    less传参问题：在url中插入变量今天在需要用less给url传递参数时遇到了小问题，一番搜索后有了下述解决方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="moment 和date-fns.html">
            
                <a href="moment 和date-fns.html">
            
                    
                    moment 和date-fns
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.19" data-path="node.JS中配置http-server.html">
            
                <a href="node.JS中配置http-server.html">
            
                    
                    node.JS中配置http-server
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20" data-path="Object.keys详解.html">
            
                <a href="Object.keys详解.html">
            
                    
                    Object.keys详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21" data-path="router-link各种属性解释.html">
            
                <a href="router-link各种属性解释.html">
            
                    
                    router-link各种属性解释
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.22" data-path="stylus使用介绍.html">
            
                <a href="stylus使用介绍.html">
            
                    
                    stylus使用介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.23" data-path="TypeError Cannot read property 'compilation' of undefined.html">
            
                <a href="TypeError Cannot read property 'compilation' of undefined.html">
            
                    
                    TypeError Cannot read property 'compilation' of undefined
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.24" data-path="Vue  keep-alive.html">
            
                <a href="Vue  keep-alive.html">
            
                    
                    Vue  keep-alive
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.25" data-path="Vue - 过渡与动画transition.html">
            
                <a href="Vue - 过渡与动画transition.html">
            
                    
                    Vue - 过渡与动画transition
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.26" data-path="vue-axios使用方法.html">
            
                <a href="vue-axios使用方法.html">
            
                    
                    vue-axios使用方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.27" data-path="vue-calendar-component.html">
            
                <a href="vue-calendar-component.html">
            
                    
                    vue-calendar-component
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.28" data-path="vue-infinite-loading.html">
            
                <a href="vue-infinite-loading.html">
            
                    
                    vue-infinite-loading
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.29" data-path="vue报错There are multiple modules with names that only differ in casing.html">
            
                <a href="vue报错There are multiple modules with names that only differ in casing.html">
            
                    
                    vue报错There are multiple modules with names that only differ in casing
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.30" data-path="Vue中注意target和currentTarget的使用.html">
            
                <a href="Vue中注意target和currentTarget的使用.html">
            
                    
                    Vue中注意target和currentTarget的使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.31" data-path="关于给javascript对象添加、删除、修改对象的属性.html">
            
                <a href="关于给javascript对象添加、删除、修改对象的属性.html">
            
                    
                    关于给javascript对象添加、删除、修改对象的属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.32" data-path="获取当前地址坐标.html">
            
                <a href="获取当前地址坐标.html">
            
                    
                    获取当前地址坐标
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.33" data-path="解决ajax跨域问题【5种解决方案】.html">
            
                <a href="解决ajax跨域问题【5种解决方案】.html">
            
                    
                    解决ajax跨域问题【5种解决方案】
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.34" data-path="解决vue-cli webpack打包后加载资源的路径问题.html">
            
                <a href="解决vue-cli webpack打包后加载资源的路径问题.html">
            
                    
                    解决vue-cli webpack打包后加载资源的路径问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.35" data-path="时间格式转换：201971转换为2019-7-1.html">
            
                <a href="时间格式转换：201971转换为2019-7-1.html">
            
                    
                    时间格式转换：201971转换为2019-7-1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.36" data-path="数据库密码改了.html">
            
                <a href="数据库密码改了.html">
            
                    
                    数据库密码改了
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.37" data-path="语法getBoundingClientRect.html">
            
                <a href="语法getBoundingClientRect.html">
            
                    
                    语法getBoundingClientRect()
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.38" data-path="在js中使用length报错Error in renderTypeErrorcannot read property bgImg of null.html">
            
                <a href="在js中使用length报错Error in renderTypeErrorcannot read property bgImg of null.html">
            
                    
                    在js中使用length报错Error in renderTypeErrorcannot read property bgImg of null
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >在js中使用length报错Error in renderTypeErrorcannot read property bgImg of null</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="error-in-rendertypeerrorcannot-read-property-bgimg-of-null"><strong>Error in render:&quot;TypeError&quot;:cannot read property &quot;bgImg&quot; of null</strong></h1>
<p>&#x8FD9;&#x79CD;&#x60C5;&#x51B5;&#xFF0C;&#x5728;&#x521D;&#x59CB;&#x5316;state&#x6570;&#x636E;&#x65F6;&#xFF0C;&#x4E0D; &#x8981;&#x7528;null,&#x5E94;&#x8BE5;&#x7528;<code>[],&quot;{}&quot;</code></p>
<p>&#x901A;&#x5E38;&#x6709;&#x4E24;&#x79CD;&#x60C5;&#x51B5;&#xFF1A;</p>
<h2 id="1&#x3001;&#x5728;&#x6A21;&#x677F;&#x7684;html&#x6807;&#x7B7E;&#x4E0A;&#x4F7F;&#x7528;length&#x62A5;&#x9519;">1&#x3001;&#x5728;&#x6A21;&#x677F;&#x7684;html&#x6807;&#x7B7E;&#x4E0A;&#x4F7F;&#x7528;length&#x62A5;&#x9519;</h2>
<p>vue &#x4E2D;&#x4F7F;&#x7528; length&#x5224;&#x65AD;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x6709;&#x65F6;&#x4F1A;&#x62A5;&#x9519;&#xFF0C;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code>&lt;div class=&quot;item_list&quot; v-if=&quot;form.checkVal.length &gt; 0&quot; &gt;&#x5217;&#x8868;1&lt;/div&gt;
&lt;div class=&quot;item_list&quot; v-else &gt;&#x5217;&#x8868;2&lt;/div&gt;
</code></pre><p>&#x89E3;&#x51B3;&#x65B9;&#x6CD5;&#xFF1A;</p>
<p>&#x6539;&#x6210;:  form.checkVal !== undefined  &amp;&amp;  form.checkVal.length &gt; 0 </p>
<pre><code>&lt;div class=&quot;item_list&quot; v-if=&quot;form.checkVal !== undefind &amp;&amp; form.checkVal.length &gt; 0&quot; &gt;&#x5217;&#x8868;1&lt;/div&gt;
&lt;div class=&quot;item_list&quot; v-else &gt;&#x5217;&#x8868;2&lt;/div&gt;
</code></pre><h2 id="2&#x3001;&#x5728;js&#x4E2D;&#x4F7F;&#x7528;length&#x62A5;&#x9519;&#xFF0C;&#x5982;&#x4E0B;">2&#x3001;&#x5728;js&#x4E2D;&#x4F7F;&#x7528;length&#x62A5;&#x9519;&#xFF0C;&#x5982;&#x4E0B;</h2>
<pre><code>if(res.Data.length == 1){
   this.tableData1 = res.Data[0];
}
</code></pre><p>&#x62A5;&#x9519;&#x539F;&#x56E0;&#xFF1A;&#x6B64;&#x65F6;res.Data&#x662F;&#x65E0;&#x6570;&#x636E;&#x4E3A;undefined&#x7684;&#xFF0C;&#x6240;&#x4EE5;&#x627E;&#x4E0D;&#x5230; res.Data.length&#x3002;</p>
<p>&#x89E3;&#x51B3;&#x529E;&#x6CD5;&#xFF1A;<strong>&#x5728;&#x52A0;&#x4E00;&#x5C42;&#x5224;&#x65AD;&#xFF0C;&#x9996;&#x5148;&#x4FDD;&#x8BC1;res.Data&#x5B58;&#x5728;&#x4E0D;&#x4E3A;null&#x6216;undefined&#x6539;&#x4E3A;</strong>&#xFF0C;&#x5982;&#x4E0B;</p>
<pre><code> if(res.Data){
   if(res.Data.length == 1){
       this.tableData1 = res.Data[0];
   }
</code></pre><pre><code>&lt;div class=&quot;shop-header-discounts&quot; @click=&quot;toggleSupportShow&quot; &gt;
  &lt;!--&#x6CE8;&#x610F;&#xFF1A;&#x5F53;&#x5F02;&#x6B65;&#x83B7;&#x53D6;&#x7684;json&#x6570;&#x636E;&#x4E3A;&#x81F3;&#x5C11;&#x4E3A;3&#x7EA7;&#x65F6;,&#x5982;&#x679C;&#x5728;&#x6570;&#x636E;&#x672A;&#x83B7;&#x53D6;&#x4E4B;&#x95F4;&#xFF0C;&#x7CFB;&#x7EDF;&#x5C06;&#x4F1A;&#x62A5;&#x9519;&#xFF0C;
  &#x89E3;&#x51B3;&#x65B9;&#x5F0F;&#x4E4B;&#x4E00;&#x4E3A;&#x8BA9;&#x8BE5;&#x5757;&#x533A;&#x57DF;&#x5728;&#x83B7;&#x53D6;&#x6570;&#x636E;&#x8FD9;&#x95F4;&#x4E0D;&#x663E;&#x793A;
  v-if=&quot;shopInfo.supports&quot;--&gt;
  &lt;div class=&quot;discounts-left&quot; &gt;
    &lt;div class=&quot;activity&quot;&gt;
      &lt;span class=&quot;content-tag&quot;&gt;
        &lt;span class=&quot;mini-tag&quot;&gt;&lt;/span&gt;
      &lt;/span&gt;
      &lt;span class=&quot;activity-content ellipsis&quot;&gt;&lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;discounts-right&quot;&gt;
    &#x4E2A;&#x4F18;&#x60E0;
  &lt;/div&gt;
&lt;/div&gt;
</code></pre><p>&#x56E0;&#x4E3A;<code>shopInfo</code>&#x8FD9;&#x4E2A;&#x6570;&#x636E;&#x662F;&#x5F02;&#x6B65;&#x6570;&#x636E;&#xFF0C;<strong>&#x5F53;&#x5F02;&#x6B65;&#x83B7;&#x53D6;&#x7684;json&#x6570;&#x636E;&#x4E3A;&#x81F3;&#x5C11;&#x4E3A;3&#x7EA7;&#x65F6;,&#x5982;&#x679C;&#x5728;&#x6570;&#x636E;&#x672A;&#x83B7;&#x53D6;&#x4E4B;&#x95F4;&#xFF0C;&#x7CFB;&#x7EDF;&#x5C06;&#x4F1A;&#x62A5;&#x9519;</strong>&#xFF0C;&#x4E0A;&#x4F8B;&#x4E2D;&#xFF1A;<code>shopInfo.supports[0].name&#xFF0C;shopInfo.supports.length</code>&#x90FD;&#x5C5E;&#x4E8E;&#x8FD9;&#x79CD;&#x60C5;&#x51B5;&#xFF0C;&#x5728;&#x6570;&#x636E;&#x672A;&#x83B7;&#x5F97;&#x4E4B;&#x524D;&#xFF0C;&#x5C31;&#x4F1A;&#x62A5;&#x9519;&#x3002;
<strong>&#x89E3;&#x51B3;&#x65B9;&#x5F0F;&#x4E4B;&#x4E00;&#x4E3A;&#x8BA9;&#x8BE5;&#x5757;&#x533A;&#x57DF;&#x5728;&#x83B7;&#x53D6;&#x6570;&#x636E;&#x4E4B;&#x524D;&#xFF0C;&#x4F5C;&#x4E00;&#x4E2A;&#x5224;&#x65AD;&#xFF0C;&#x7528;v-if&#x6765;&#x5224;&#x65AD;&#x8BE5;&#x6570;&#x636E;&#x662F;&#x5426;&#x4E3A;&#x7A7A;</strong></p>
<p>&#x6539;&#x4E3A;&#xFF1A;</p>
<pre><code>&lt;div class=&quot;shop-header-discounts&quot; @click=&quot;toggleSupportShow&quot; v-if=&quot;shopInfo.supports&quot;&gt;
  &lt;!--&#x6CE8;&#x610F;&#xFF1A;&#x5F53;&#x5F02;&#x6B65;&#x83B7;&#x53D6;&#x7684;json&#x6570;&#x636E;&#x4E3A;&#x81F3;&#x5C11;&#x4E3A;3&#x7EA7;&#x65F6;,&#x5982;&#x679C;&#x5728;&#x6570;&#x636E;&#x672A;&#x83B7;&#x53D6;&#x4E4B;&#x95F4;&#xFF0C;&#x7CFB;&#x7EDF;&#x5C06;&#x4F1A;&#x62A5;&#x9519;&#xFF0C;
  &#x89E3;&#x51B3;&#x65B9;&#x5F0F;&#x4E4B;&#x4E00;&#x4E3A;&#x8BA9;&#x8BE5;&#x5757;&#x533A;&#x57DF;&#x5728;&#x83B7;&#x53D6;&#x6570;&#x636E;&#x8FD9;&#x95F4;&#x4E0D;&#x663E;&#x793A;
  v-if=&quot;shopInfo.supports&quot;--&gt;
  &lt;div class=&quot;discounts-left&quot; &gt;
    &lt;div class=&quot;activity&quot;&gt;
      &lt;span class=&quot;content-tag&quot;&gt;
        &lt;span class=&quot;mini-tag&quot;&gt;&lt;/span&gt;
      &lt;/span&gt;
      &lt;span class=&quot;activity-content ellipsis&quot;&gt;&lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;discounts-right&quot;&gt;
    &#x4E2A;&#x4F18;&#x60E0;
  &lt;/div&gt;
&lt;/div&gt;
</code></pre><h2 id="3&#x53EF;&#x80FD;&#x5728;data&#x4E2D;&#x58F0;&#x660E;&#x4E86;&#x4E24;&#x4E2A;&#x76F8;&#x540C;&#x7684;&#x5C5E;&#x6027;&#xFF0C;&#x5BFC;&#x81F4;&#x51B2;&#x7A81;&#xFF0C;&#x6216;&#x8005;&#x5199;&#x9519;&#x67D0;&#x4E2A;&#x5355;&#x8BCD;&#x5BFC;&#x81F4;&#x6CA1;&#x6709;&#x6570;&#x636E;">3.&#x53EF;&#x80FD;&#x5728;data&#x4E2D;&#x58F0;&#x660E;&#x4E86;&#x4E24;&#x4E2A;&#x76F8;&#x540C;&#x7684;&#x5C5E;&#x6027;&#xFF0C;&#x5BFC;&#x81F4;&#x51B2;&#x7A81;&#xFF0C;&#x6216;&#x8005;&#x5199;&#x9519;&#x67D0;&#x4E2A;&#x5355;&#x8BCD;&#x5BFC;&#x81F4;&#x6CA1;&#x6709;&#x6570;&#x636E;</h2>
<p>&#x5982;&#x679C;&#x5728;&#x6587;&#x6863;&#x4E2D;&#x5199;&#x4E86;&#x4E24;&#x4E2A;ref,&#x8C03;&#x7528;&#x65F6;&#x5C31;&#x4F1A;&#x62A5;&#x9519;&#xFF1A;</p>
<p>&#x4F8B;&#xFF1A;</p>
<p>Error in nextTick: &quot;TypeError: Cannot read property &apos;0&apos; of undefined&quot;</p>
<p><img src="C:\Users\pr\AppData\Roaming\Typora\typora-user-images\1560861389608.png" alt="1560861389608"></p>
<p><img src="C:\Users\pr\AppData\Roaming\Typora\typora-user-images\1560861404962.png" alt="1560861404962"></p>
<p><img src="C:\Users\pr\AppData\Roaming\Typora\typora-user-images\1560861368689.png" alt="1560861368689"></p>
<p>&#x53BB;&#x6389;&#x4E00;&#x4E2A;&#x5C31;&#x53EF;&#x4EE5;&#x4E86;</p>
<p>4.&#x5224;&#x65AD;&#x662F;&#x5426;&#x5B58;&#x5728;</p>
<pre><code>&lt;div v-if=&quot;poiInfo2.discounts2&quot;&gt;&lt;img 
:src=&quot;poiInfo2.discounts2[0].icon_url&quot; 
&gt; &lt;/div&gt;
</code></pre>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="语法getBoundingClientRect.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 语法getBoundingClientRect()">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"在js中使用length报错Error in renderTypeErrorcannot read property bgImg of null","level":"1.38","depth":1,"previous":{"title":"语法getBoundingClientRect()","level":"1.37","depth":1,"path":"project/语法getBoundingClientRect.md","ref":"project/语法getBoundingClientRect.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"project/在js中使用length报错Error in renderTypeErrorcannot read property bgImg of null.md","mtime":"2019-06-18T12:37:11.214Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-07-18T03:07:23.077Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

